{template header}
<link rel="stylesheet" type="text/css" href="{SITE_URL}css/default/message.css" />
<div class="box">
    <div class="box_left_nav font_gray" style="font-size: 12px;">→ <a href="{SITE_URL}">{$setting['site_name']}</a> &gt; <a>我的积分</a> </div>
    <!--内容 begin-->
    <div class="ps_content">
        <!--左边 begin -->
        <div class="ps_contentl">
            <!--用户信息-->
            <!--左边 begin -->
            <!-- 个人信息 开始-->
            <div class="ps_box1">
                <div class="person_name">{$user['username']} </div>
                <div class="user_info">
                    <div class="person_pic"><img id="headPic" src="{$user['avatar']}" alt="{$user['username']}" title="{$user['username']}"></div>
                    <div class="user_subinfo">
                        <span>{$user['grouptitle']}</span>
                    </div>
                </div>
                <div class="user_info">
                    {if 2==$user['grouptype']}
                    <div>
                        {eval $credit1percent=round(($user['credit1']/$user['creditshigher'])*100);}
                        {eval $credit1percentleft = 100-$credit1percent-1}
                        升级进度<img src="css/default/jindutiao_yellow.gif" alt="" style="vertical-align: middle;" width="{$credit1percent}" height="7"><img src="css/default/jindutiao_white-02.gif" alt="" style="vertical-align: middle;" width="{$credit1percentleft}" height="7"><img src="css/default/jindutiao_end.gif" alt="" style="vertical-align: middle;" width="1" height="7"><span class="font_gray">({$user['credit1']}/{$user['creditshigher']})</span>
                    </div>
                    {/if}
                </div>
            </div>
            <!-- 个人信息 结束-->
            <div class="nav_bar">
                <dl>
                    <dd class="nav_link" id="myscore"><a href="{url user/score}">我的积分</a></dd>
                    <dd class="nav_link" id="myask"><a href="{url user/ask}">个人资料</a></dd>
                    <dd class="nav_link" id="myask"><a href="{url user/ask}">我的提问</a></dd>
                    <dd class="nav_link" id="myanswer"><a href="{url user/answer}">我的回答</a></dd>
                    <dd class="nav_link" id="myanswer"><a href="{url user/favorite}">我的收藏</a></dd>
                    <dd class="hover" id="mymsg"><a href="{url message/new}">我的消息</a></dd>
                </dl>
            </div>
            <!--左边 end -->
            <!--最近留言-->
            <div id="newMessage" class="user_info" ></div>
            <!--最近来访--></div>
        <!--左边 end -->

        <!--右边 begin -->
        <!-- 提问 回答-->
        <div class="ps_contentr">
            <div class="userCenter">
                <div class="box_userCenter clearfix">
                    <div class="box_msg">
                        <div class="topNav_msg clearfix">
                            <div class="tab_msg_bk">
                                <H1>发件箱</H1>
                                <input type="button" onclick="location.href='{url message/new}'" value="返回">
                            </div>
                        </div>
                        <div class="box_msg_lan">
                            <div class="sysmsg">
                                <div class="cont01">
                                    <form  name="sendmsgForm"  action="{url message/send}" method="post">
                                        <div class="write">
                                            <div class="leftbk">
                                                <div class="fjr">
                                                    <div class="retext fL fontBold"> 发送至：</div>
                                                    <div class="fL"><input type="text" value="" id="msg_title" name="username" size="48"></div>
                                                </div>
                                                <div class="fjr">
                                                    <div class="retext fL fontBold"> 主题：</div>
                                                    <div class="fL"><input type="text" value="" id="msg_title" name="title" size="48" maxlength="48"></div>
                                                </div>
                                                <div class="rewrite">
                                                    <div class="huitext fL fontBold"> 内容：</div>
                                                    <div class="fL"><textarea rows="10" cols="60" name="content" id="sdfsd"></textarea></div>
                                                </div>
                                                {if isset($setting['code_message']) && $setting['code_message']}
                                                <div class="fjr">
                                                    <div class="retext fL fontBold"> 验证码：</div>
                                                    <div class="fL"><input maxlength="4" name="code" size="10" />&nbsp;&nbsp;<img id="verifycode" onclick="javascript:updatecode();" src="{url user/code}"/>&nbsp;<a href="javascript:updatecode();">看不清，换一个</a><span id="codetip"></span></div>
                                                </div>
                                                {/if}
                                                <div class="limit"></div>
                                                <div class="send"><input type="button" onclick="javascript:document.sendmsgForm.submit();" id="btnsendMsg"></div>
                                            </div>
                                        </div>
                                    </form>
                                    <div class="clearbth">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--右边 end --></div>
        <!--内容 end-->
        <div class="clear">
        </div>
    </div>
</div>
{template footer}